package com.lsxh.maoqiuqiu.action;

import com.lsxh.maoqiuqiu.modul.RUser;
import com.lsxh.maoqiuqiu.service.IUserService;
import com.lsxh.maoqiuqiu.service.impl.UserServiceImpl;


public class TestAction extends BaseAction{

	private String comment= "";
	
	private String res;
	private String message;
	
	public String justTestIt(){
		message = "It works!";
		
		//Test recordUser
		RUser user = new RUser();
		user.setUserId(10002);
		user.setUsername("Test User2");
		
		IUserService iUserService = new UserServiceImpl();
		iUserService.recordUser(user);
		
		return SUCCESS;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	public String getRes() {
		return res;
	}

	public void setRes(String res) {
		this.res = res;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}
	
}
